<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.14.1/theme-chalk/index.min.css" rel="stylesheet">
</head>
<body>
<div id="app">
    <el-checkbox-group v-model="checkBoxGroup1">
        <el-checkbox-button v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox-button>
    </el-checkbox-group>
    <div style="margin-top: 20px">
        <el-checkbox-group v-model="checkBoxGroup2" size="medium">
            <el-checkbox-button v-for="city in cities" :label="city" :key="city">{{city}}</el-checkbox-button>
        </el-checkbox-group>
    </div>
    <div style="margin-top: 20px">
        <el-checkbox-group v-model="checkBoxGroup3" size="small">
            <el-checkbox-button v-for="city in cities" :disabled="city == '北京'" :key="city" :label="city">{{city}}</el-checkbox-button>
        </el-checkbox-group>
    </div>
    <div style="margin-top: 20px">
        <el-checkbox-group v-model="checkBoxGroup4" size="mini" disabled>
            <el-checkbox-button v-for="city in cities" :disabled="city == '北京'" :key="city" :label="city">{{city}}</el-checkbox-button>
        </el-checkbox-group>
    </div>
    <div style="margin-top: 20px">
        <el-checkbox-group v-model="checkBoxGroup4" size="mini" disabled>
            <el-checkbox v-for="city in cities" :disabled="city == '北京'" :key="city" :label="city" border>{{city}}</el-checkbox>
        </el-checkbox-group>
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/element-ui/2.14.1/index.min.js"></script>
<script>
    const cityOptions = ['北京','上海','广州','深圳'];

    new Vue({
        el: '#app',
        data() {
            return {
                checkBoxGroup1: ['上海'],
                checkBoxGroup2: ['上海'],
                checkBoxGroup3: ['上海'],
                checkBoxGroup4: ['上海'],
                cities: cityOptions
            }
        }
    })
</script>
</body>
</html>